$(document).ready(function () {


$("#pie-2").append("<table id='ta1'><tr><th class='di'>确诊  </th><th id='di'></th><th class='sus'>疑似  </th><th id='sus'></th></tr></table>");//.css("color","#5ac8fa");
           $("#ta1").append("<tr><th class='di'>治愈  </th><th id='cu'></th><th class='sus'>死亡  </th><th id='died'></th></tr>").css("margin-top","8%");
            $(".di").css("font-size","40px").css("color","#5ac8fa").css("font-family","Courier, monospace");
           $(".sus").css("font-size","40px").css("color","#5ac8fa").css("font-family","Courier, monospace");
           $.ajax({
            url: "/data_text"
            , async: true
            , dataType: 'JSON'
            , timeout: 10000
            , contentType: "application/json"
            , success: function (data) {
                $("#di").text(data[0].diagnosed.toString()+"例");
                   $("#sus").text(data[0].suspected.toString()+"例");
                   $("#cu").text(data[0].cured.toString()+"例");
                   $("#died").text(data[0].died.toString()+"例")
               }
               })})